package com.efa.backend.framework.exception;

import java.text.MessageFormat;

/**
 * @Description: TODO
 * @author zhaoxin
 * @date 2014年3月13日 上午9:42:34
 * @version V1.0
 */

public class BizException extends Exception {

	private static final long serialVersionUID = 1L;

	private final Object[] params;

	public BizException(String message, Object... params) {
		super(message);
		this.params = params;
	}

	public String getMsg() {
		return MessageFormat.format(this.getMessage(), this.params);
	}
}
